GdkQuartz: Handle NULL from [NSGraphicsContext currentContext].
authorJohn Ralls <jralls@ceridwen.us>
Sat, 20 Oct 2018 19:27:46 +0000 (12:27 -0700)
committerJohn Ralls <jralls@ceridwen.us>
Thu, 1 Nov 2018 22:39:27 +0000 (15:39 -0700)
commite31187e1cf5ca9901a9f435e75375e5fd8723888
tree1a7e1f8be6c0611fe1001368866c822750ee2278
parente457a7823cf9576eba7fea2364db1a7ceb676d3f
GdkQuartz: Handle NULL from [NSGraphicsContext currentContext].

By returning a default surface. The situation where there's no
currentContext arises when GtkCSS is trying to determine the
layout sizes so no actual display is necessary.

Closes: #1411
gdk/quartz/gdksurface-quartz.c